<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<s:form method="post" action="sendMassEmail" theme="simple" id="form">
<table width="100%">
	<tr>
		<td valign="top" width="100%">
			<table width="100%">
				<tbody>
				<tr>
						<td valign="top" class="verdana12blacknormal" colspan="2">
							<s:actionmessage cssClass="verdana11greynormal" />
							<s:actionerror cssClass="Note-red"/>
						</td>
						</tr>
					<tr>
						<td valign="top" width="30%" class="verdana12blacknormal">
							Please select the letter you want to send.
						</td>
						<td valign="top" width="70%">
							<s:select name="letterId" list="letters" listKey="letterId" listValue="subject" headerValue="Select letter" theme="simple"></s:select>
						</td>

					</tr>
				</tbody>
			</table>
		</td>
	</tr>

	<tr>
		<td valign="top" width="100%">
			<table width="100%" class="verdana12blacknormal">
				<tbody>
					<tr>
						<td valign="top" width="30%">

							<p align="justify">
								Select the lists you want to send the selected letter. To Select
								more than one list, drag your mouse or click with the
								&lt;CTRL&gt; Key pressed.
							</p>
						</td>
						<td valign="top" width="70%">
							<s:select name="groups" list="groupList" listKey="groupId"
										listValue="name" multiple="true" size="6" cssClass="Textfiled-border"
										 theme="simple"></s:select>
						</td>
					</tr>


				</tbody>
			</table>

		</td>
	</tr>
	<tr>
		<td valign="top" width="100%">
			<table width="100%">
				<tbody>
					<tr>
						<td valign="top" width="30%" class="verdana12blacknormal">

							<s:checkbox name="createdMail" theme="simple" />
							<b>Send to these emails only.</b>
							<br>
							<p align="justify">
								Please enter one email address per line and press "Enter" at the
								end of each line.
								<br>
							</p>
						</td>
						<td valign="top" width="70">
							<s:textarea name="emailList" rows="7" cols="40" theme="simple" />
						</td>
					</tr>
					<tr>
						<td valign="top" class="verdana12blacknormal">
							<input name="Send_As_HTML" value="YES" checked="checked"
								type="checkbox">
							<b>Send letter as HTML.</b>

						</td>
					</tr>
					<tr>
						<td colspan="2" align="center" nowrap="nowrap">
							<s:submit type="image" value="%{'Send Letter'}" name="submit"
								theme="simple" src="../Admin-Images/send-letter-btn.gif" />
							&nbsp;&nbsp;
							<img onclick="document.getElementById('form').reset();"
								style="cursor: pointer;" src="../Admin-Images/reset-button.gif"
								alt="reset" />
							&nbsp;
						</td>
					</tr>
			</table>
</table>
</s:form>